package com.bnlr.lrparking.appui.order.mode;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by tian on 2017/11/21.
 */

public class OrderBean implements Parcelable {

    /**
     * errorCode : 0
     * msgcode : 1
     * msg : 成功
     * data : [{"RowNum":1,"OrderNumber":"S17112720491835665","SpaceId":109809,"DealPrice":0,"IsByStage":0,"Status":"待付定金","StatusInt":0,"AdvanceMoney":1000,"FailReason":"","DealUserName":"123","DealPhone":"56765","CreateTime":"2017-11-27 20:49:18","HoldBeginTime":"2017-11-28 11:40:47","PayUserName":"fds","PayUserPhone":"","PayType":1,"Title":"出售 测试数据 哈哈 23平米1","Number":"","SpaceOwerType":1,"PhotoUrl":"","ParkingId":3528,"Name":"测试数据","IncomeValue":null,"ChineseMoney":"壹仟","Discount":"暂无优惠"}]
     * recordCount : 1
     */

    private int errorCode;
    private String msgcode;
    private String msg;
    private int recordCount;
    private List<DataBean> data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * RowNum : 1
         * OrderNumber : S17112720491835665
         * SpaceId : 109809
         * DealPrice : 0
         * IsByStage : 0
         * Status : 待付定金
         * StatusInt : 0
         * AdvanceMoney : 1000
         * FailReason :
         * DealUserName : 123
         * DealPhone : 56765
         * CreateTime : 2017-11-27 20:49:18
         * HoldBeginTime : 2017-11-28 11:40:47
         * PayUserName : fds
         * PayUserPhone :
         * PayType : 1
         * Title : 出售 测试数据 哈哈 23平米1
         * Number :
         * SpaceOwerType : 1
         * PhotoUrl :
         * ParkingId : 3528
         * Name : 测试数据
         * IncomeValue : null
         * ChineseMoney : 壹仟
         * Discount : 暂无优惠
         */
        private int Id;
        private int RowNum;
        private String OrderNumber;
        private int SpaceId;
        private int DealPrice;
        private int IsByStage;
        private String Status;
        private int StatusInt;
        private int AdvanceMoney;
        private String FailReason;
        private String DealUserName;
        private String DealPhone;
        private String CreateTime;
        private String HoldBeginTime;
        private String PayUserName;
        private String PayUserPhone;
        private int PayType;
        private String Title;
        private String Number;
        private int SpaceOwerType;
        private String PhotoUrl;
        private int ParkingId;
        private String Name;
        private String AdvanceMoneyStr;
        private String ChineseMoney;
        private String Discount;
        private String EndTime;
        private String Address;
        private String TypeInt;

        public String getAddress() {
            return Address;
        }

        public String getTypeInt() {
            return TypeInt;
        }

        public int getRowNum() {
            return RowNum;
        }

        public void setRowNum(int RowNum) {
            this.RowNum = RowNum;
        }

        public String getOrderNumber() {
            return OrderNumber;
        }

        public void setOrderNumber(String OrderNumber) {
            this.OrderNumber = OrderNumber;
        }

        public int getSpaceId() {
            return SpaceId;
        }

        public void setSpaceId(int SpaceId) {
            this.SpaceId = SpaceId;
        }

        public int getDealPrice() {
            return DealPrice;
        }

        public void setDealPrice(int DealPrice) {
            this.DealPrice = DealPrice;
        }

        public int getIsByStage() {
            return IsByStage;
        }

        public void setIsByStage(int IsByStage) {
            this.IsByStage = IsByStage;
        }

        public String getStatus() {
            return Status;
        }

        public void setStatus(String Status) {
            this.Status = Status;
        }

        public int getStatusInt() {
            return StatusInt;
        }

        public void setStatusInt(int StatusInt) {
            this.StatusInt = StatusInt;
        }

        public int getAdvanceMoney() {
            return AdvanceMoney;
        }

        public void setAdvanceMoney(int AdvanceMoney) {
            this.AdvanceMoney = AdvanceMoney;
        }

        public String getFailReason() {
            return FailReason;
        }

        public void setFailReason(String FailReason) {
            this.FailReason = FailReason;
        }

        public String getDealUserName() {
            return DealUserName;
        }

        public void setDealUserName(String DealUserName) {
            this.DealUserName = DealUserName;
        }

        public String getDealPhone() {
            return DealPhone;
        }

        public void setDealPhone(String DealPhone) {
            this.DealPhone = DealPhone;
        }

        public String getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(String CreateTime) {
            this.CreateTime = CreateTime;
        }

        public String getHoldBeginTime() {
            return HoldBeginTime;
        }

        public void setHoldBeginTime(String HoldBeginTime) {
            this.HoldBeginTime = HoldBeginTime;
        }

        public String getPayUserName() {
            return PayUserName;
        }

        public void setPayUserName(String PayUserName) {
            this.PayUserName = PayUserName;
        }

        public String getPayUserPhone() {
            return PayUserPhone;
        }

        public void setPayUserPhone(String PayUserPhone) {
            this.PayUserPhone = PayUserPhone;
        }

        public int getPayType() {
            return PayType;
        }

        public void setPayType(int PayType) {
            this.PayType = PayType;
        }

        public String getTitle() {
            return Title;
        }

        public void setTitle(String Title) {
            this.Title = Title;
        }

        public String getNumber() {
            return Number;
        }

        public void setNumber(String Number) {
            this.Number = Number;
        }

        public int getSpaceOwerType() {
            return SpaceOwerType;
        }

        public void setSpaceOwerType(int SpaceOwerType) {
            this.SpaceOwerType = SpaceOwerType;
        }

        public String getPhotoUrl() {
            return PhotoUrl;
        }

        public void setPhotoUrl(String PhotoUrl) {
            this.PhotoUrl = PhotoUrl;
        }

        public int getParkingId() {
            return ParkingId;
        }

        public void setParkingId(int ParkingId) {
            this.ParkingId = ParkingId;
        }

        public String getName() {
            return Name;
        }

        public void setName(String Name) {
            this.Name = Name;
        }

        public String getAdvanceMoneyStr() {
            return AdvanceMoneyStr;
        }

        public int getId() {
            return Id;
        }

        public String getChineseMoney() {
            return ChineseMoney;
        }

        public void setChineseMoney(String ChineseMoney) {
            this.ChineseMoney = ChineseMoney;
        }

        public String getDiscount() {
            return Discount;
        }

        public void setDiscount(String Discount) {
            this.Discount = Discount;
        }

        public String getEndTime() {
            return EndTime;
        }

        public DataBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.Id);
            dest.writeInt(this.RowNum);
            dest.writeString(this.OrderNumber);
            dest.writeInt(this.SpaceId);
            dest.writeInt(this.DealPrice);
            dest.writeInt(this.IsByStage);
            dest.writeString(this.Status);
            dest.writeInt(this.StatusInt);
            dest.writeInt(this.AdvanceMoney);
            dest.writeString(this.FailReason);
            dest.writeString(this.DealUserName);
            dest.writeString(this.DealPhone);
            dest.writeString(this.CreateTime);
            dest.writeString(this.HoldBeginTime);
            dest.writeString(this.PayUserName);
            dest.writeString(this.PayUserPhone);
            dest.writeInt(this.PayType);
            dest.writeString(this.Title);
            dest.writeString(this.Number);
            dest.writeInt(this.SpaceOwerType);
            dest.writeString(this.PhotoUrl);
            dest.writeInt(this.ParkingId);
            dest.writeString(this.Name);
            dest.writeString(this.AdvanceMoneyStr);
            dest.writeString(this.ChineseMoney);
            dest.writeString(this.Discount);
            dest.writeString(this.EndTime);
            dest.writeString(this.Address);
            dest.writeString(this.TypeInt);
        }

        protected DataBean(Parcel in) {
            this.Id = in.readInt();
            this.RowNum = in.readInt();
            this.OrderNumber = in.readString();
            this.SpaceId = in.readInt();
            this.DealPrice = in.readInt();
            this.IsByStage = in.readInt();
            this.Status = in.readString();
            this.StatusInt = in.readInt();
            this.AdvanceMoney = in.readInt();
            this.FailReason = in.readString();
            this.DealUserName = in.readString();
            this.DealPhone = in.readString();
            this.CreateTime = in.readString();
            this.HoldBeginTime = in.readString();
            this.PayUserName = in.readString();
            this.PayUserPhone = in.readString();
            this.PayType = in.readInt();
            this.Title = in.readString();
            this.Number = in.readString();
            this.SpaceOwerType = in.readInt();
            this.PhotoUrl = in.readString();
            this.ParkingId = in.readInt();
            this.Name = in.readString();
            this.AdvanceMoneyStr = in.readString();
            this.ChineseMoney = in.readString();
            this.Discount = in.readString();
            this.EndTime = in.readString();
            this.Address = in.readString();
            this.TypeInt = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.errorCode);
        dest.writeString(this.msgcode);
        dest.writeString(this.msg);
        dest.writeInt(this.recordCount);
        dest.writeList(this.data);
    }

    public OrderBean() {
    }

    protected OrderBean(Parcel in) {
        this.errorCode = in.readInt();
        this.msgcode = in.readString();
        this.msg = in.readString();
        this.recordCount = in.readInt();
        this.data = new ArrayList<DataBean>();
        in.readList(this.data, DataBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<OrderBean> CREATOR = new Parcelable.Creator<OrderBean>() {
        @Override
        public OrderBean createFromParcel(Parcel source) {
            return new OrderBean(source);
        }

        @Override
        public OrderBean[] newArray(int size) {
            return new OrderBean[size];
        }
    };
}
